/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Abril_4.Ej_10_04_13_01;

import java.util.Scanner;

/**
  *                  _ _ _ _ _ _ _ 
  *                /   ______     /|
 *                /  /       /   / | 
 *               /  /   H   /   /  |
 *              /  /______ /   /   |
 *             /_ _ _ _ _ _ _ /    |    
 *             |             |     |
 *             |   _    _    |     |                
 *             |  [_]  [_]   |     |                
 *             |  [_]  [_]   |     |
 *             |             |     |                
 *             |   _    _    |  /| |                
 *             |  (_)  (_)   | | | |                
 *             |  (_)  (_)   | | | |      \/\/\/\/\/\/\/\/\               
 *             |  (_)  (_)   | |/  |      \               /
 *             |             |     |      /               \
 *             |             |     |      \               /
 *             |  [_]  [_]   |     |      /      _        \
 *             |  [_]  [_]   |     |      \/\/\/\/| |\/\/\/       
 *             |             |     |              | |   
 *             |             |     |              | |
 *     /*\     |             |    /               | |                          /*\
 *      1      |    _ _ _    |   /                | |                           1
 *      1      |   |^^^^^|   |  /                 | |                           1
 *      1      |   | [ ] |   | /                  |_|                           1
 *      1      |_ _|_[_]_|_ _|/                                                 1
 *              
 *              
 * @author vesprada
 */
public class NewClass {

    public static void main(String[] args) {
//        double valor = 2;
//        try {
//            valor = Math.pow(0.5, -valor);
//            System.out.println("" + valor);
//        } catch (NumberFormatException e1) {
//            System.out.println(e1.getMessage());
//        }


        Scanner entrada = new Scanner(System.in);
        String[] cosas = new String[3];


        try {
            cosas[5] = "casa";
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("" + e.getLocalizedMessage());
        }
        System.out.println("Ahora el programa puede continuar");
    }

    private static int stringToInt(String entero) {
        int resultado = Integer.parseInt(entero);
        return resultado;
    }
}
